{load_language_text section="index"}

{php}
if((substr_count($_SERVER["SCRIPT_NAME"], 'checkout_') > 0 || substr_count($_SERVER["SCRIPT_NAME"], 'paypal_checkout') > 0) && gm_get_conf('GM_LIGHTBOX_CART') == 'true' && gm_get_conf('GM_LIGHTBOX_CHECKOUT') == 'true') echo '<div id="pre_black_container"><div id="pre_black">&nbsp;</div></div>';

if(gm_get_conf('GM_SHOP_OFFLINE') != 'checked' || $_SESSION['customers_status']['customers_status_id'] == 0) {
	$show_page = true;
} else {
	$show_page = false;
}

if($show_page == false) {
	echo '<br/><br/><br/>'. gm_get_conf('GM_SHOP_OFFLINE_MSG') .'<br/><br/><br/>';
} else {
	{/php}
{*############### OFFLINE BOF ###############*}
<div id="wrap_box" class="wrap_shop">
	<noscript>
		<div class="noscript_notice">
			{$txt.text_noscript_notice}
		</div>
	</noscript>

	{$TOP_NAVIGATION}
	{$CATEGORIES_DROPDOWN}

	<div id="container">
		<div id="container_inner" class="clearfix">
			<div id="header">
				{if $gm_logo}<div id="shop_logo">{$gm_logo}</div>{/if}
			</div>

			{$CATEGORIES_TOP}
			{$CONTENT_TOP}

			<div id="head_toolbox">
				<div id="head_toolbox_inner">
					{$TOP_SEARCH}

					<div id="breadcrumb_navi">
						<span>{$navtrail}</span>
					</div>

					{$SHOPPING_CART_HEAD}
				</div>
			</div>		

			<div id="main" class="clearfix">
				{if $BANNER}<div id="shop_top_banner">{$BANNER}</div>{/if}
				<div id="main_inside">
					{$IMGSLIDER}
					{$main_content}
									
				</div>
			</div>

			<div id="left" class="clearfix">
				{gm_menuboxes first=1 last=100 html='<div id="gm_box_pos_[COUNTER]" class="gm_box_container">[CONTENT]</div>'}
				{gm_menuboxes first=101 last=200 html='<div id="gm_box_pos_[COUNTER]" class="gm_box_container">[CONTENT]</div>'}
			</div>

			{if $COPYRIGHT_FOOTER}
				<div id="shopsoftware_by_gambio">
					{$COPYRIGHT_FOOTER}
				</div>
			{/if}
		</div>
	</div>

	{gm_footer}

	{$CATEGORIES_SUBMENUS}

	{$SHOPPING_CART_DROPDOWN}
	
	{$LOGIN_DROPDOWN}
	{$INFOBOX_DROPDOWN}
	{$CURRENCIES_DROPDOWN}
	{$LANGUAGES_DROPDOWN}
</div>

{*############### OFFLINE EOF ###############*}
	{php}
}
{/php}